<%@ Control Language="vb" AutoEventWireup="true" Inherits="SIAVU.Presentacion.ucCustomAppointmentToolTipPostas" Codebehind="ucCustomAppointmentToolTipPostas.ascx.vb" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1" Namespace="DevExpress.Web.ASPxEditors"	TagPrefix="dxe" %>

  <link rel="stylesheet" type="text/css" href="../../CSS/CustomToolTip.css" />
  
<div class="cToolTipContainer">
	<div class="cToolTipTopLeftCorner">&nbsp;</div>
	<div class="cToolTipTopSide">&nbsp;</div>
	<div class="cToolTipTopRightCorner">&nbsp;</div>
	<div class="cToolTipClearFlow">&nbsp;</div>

	<div class="cToolTipLeftSide">
		<div class="cToolTipRightSide">
			<div style="padding:5px 15px 10px 15px;">
				<div style="padding-bottom:0px;">
					<div>
						<dxe:ASPxLabel runat="server" ID="lInformacionCompletra" EnableClientSideAPI="true" Font-Size="10pt" Font-Names="Tahoma" ForeColor="black"></dxe:ASPxLabel>
					</div>    
				</div>
			</div>
		</div>
	</div>
	<div class="cToolTipClearFlow">&nbsp;</div>
	<div class="cToolTipBottomLeftCorner">&nbsp;</div>
	<div class="cToolTipBottomSide">
		<div class="cToolTipBottomSideSizeFixer">&nbsp;</div>
	</div>
	<div class="cToolTipBottomRightCorner">&nbsp;</div>
	<div class="cToolTipClearFlow">&nbsp;</div>
</div>
<script type="text/javascript" id="dxss_">
    ASPxClientAppointmentToolTip = _aspxCreateClass(ASPxClientToolTipBase, {
        Initialize: function() {

        },
        Update: function(data) {
            var apt = data.GetAppointment();
            this.apt = apt;
            if (!apt.updated) {
                this.scheduler.RefreshClientAppointmentProperties(apt, AppointmentPropertyNames.Normal, _aspxCreateDelegate(this.OnAppointmentRefresh, this));
                this.controls.lInformacionCompletra.SetText("Cargando...");
            } else {
            this.controls.lInformacionCompletra.SetText(apt.GetDescription());
            }
        },
        OnAppointmentRefresh: function(apt) {
            apt.updated = true;
            this.controls.lInformacionCompletra.SetText(apt.GetDescription());
        }
    });    
</script>
